import { Link } from 'react-router-dom'
import './App.css'

function App({ children }) {
  return (
    <div className="react-app-container">
      <header>
        <h1>React 子应用</h1>
        <nav>
          <Link to="/">首页</Link> | <Link to="/about">关于</Link>
        </nav>
      </header>
      <main>
        {children}
      </main>
    </div>
  )
}

export default App